package com.jeewms.www.tms.util;
//totast 规范类
import android.content.Context;
import android.graphics.Color;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

public class z_toast {
    Toast ssa;

    public Toast getSsa() {
        return ssa;
    }

    public void setSsa(Toast ssa) {
        this.ssa = ssa;
    }

    public void showToast(String info, Context activy){
        ssa = Toast.makeText(activy,info,Toast.LENGTH_SHORT);
        LinearLayout linearLayout = (LinearLayout)ssa.getView();
        linearLayout.setBackgroundColor(181);
        TextView v = (TextView) ssa.getView().findViewById(android.R.id.message);
        v.setTextColor(Color.RED);
//        v.setTextSize(25);
        ssa.show();

    }





}
